import request from '@/utils/request'

/**账单查询 */
export function selectElectricity(params) {
  return request({
    url: '/billing/compute',
    method: 'get',
    params
  })
}
/**容量联动 */
export function checkLinkage(params) {
  return request({
    url: '/bill/checkLinkage',
    method: 'get',
    params
  })
}
/**电费缴费 */
export function selectCost(params) {
  return request({
    url: '/bill/selectCost',
    method: 'get',
    params
  })
}
/**欠费列表 */
export function selectArrears(params) {
  return request({
    url: '/bill/selectArrears',
    method: 'get',
    params
  })
}
/**预付费 */ 
export function selectAdvance(params) {
  return request({
    url: '/bill/advance',
    method: 'get',
    params
  })
}
/**电费单据 */
export function selectElectricityBill(params) {
  return request({
    url: '/billing/electricity',
    method: 'get',
    params
  })
}
/**账单载体列表 */
export function selectBillingZt(params) {
  return request({
    url: '/billing/billingzt',
    method: 'get',
    params
  })
}
//应收明细本月导航条

export function receivableHome(params) {
  return request({
    url: '/billing/monthReceivable',
    method: 'get',
    params
  })
}
//应收明细本月列表
export function receivableMonthList(params) {
  return request({
    url: '/billing/monthReceivablemx',
    method: 'get',
    params
  })
}
//年度拖欠列表
export function receivableYearList(params) {
  return request({
    url: '/billing/yearDelaymx',
    method: 'get',
    params
  })
}
//年度拖欠导航
export function receivableYearNav(params) {
  return request({
    url: '/billing/yearDelay',
    method: 'get',
    params
  })
}
//已收明细数据看板
export function receivableDetailBoard(params) {
  return request({
    url: '/billing/received',
    method: 'get',
    params
  })
}
//已收明细本月列表
export function receivableDetailMonthList(params) {
  return request({
    url: '/billing/receivedmx',
    method: 'get',
    params
  })
}
//已开票列表
export function receivableDetailInvoiceList(params) {
  return request({
    url: '/billing/Invoiced',
    method: 'get',
    params
  })
}
//未开票数据面板
export function receivableDetailNoInvoiceBoard(params) {
  return request({
    url: '/billing/unInvoiced',
    method: 'get',
    params
  })
}
//未开票列表
export function receivableDetailNoInvoiceList(params) {
  return request({
    url: '/billing/unInvoicedmx',
    method: 'get',
    params
  })
}
//客户整体电费数据
export function receivableDetailCustomerBoard(params) {
  return request({
    url: '/billing/customer',
    method: 'get',
    params
  })
}
//客户未收电费列表
export function receivableDetailCustomerList(params) {
  return request({
    url: '/billing/customerMx',
    method: 'get',
    params
  })
}
//客户已收电费列表
export function receivableDetailCustomerReceivedList(params) {
  return request({
    url: '/billing/customerReceived',
    method: 'get',
    params
  })
}
//客户开票列表
export function receivableDetailCustomerInvoiceList(params) {
  return request({
    url: '/billing/customerInvoice',
    method: 'get',
    params
  })
}
//客户开票信息数据面板
export function receivableDetailCustomerInvoiceBoard(params) {
  return request({
    url: '/billing/unInvoiced',
    method: 'get',
    params
  })
}
// 空调费用录入

export function insertKtfy(data) {
  return request({
    url: '/billing/insertkt1',
    method: 'post',
    data: data
  })
}
// 空调数字看板
export function airConditioningMatch(params) {
  return request({
    url: '/billing/airConditioningMatch',
    method: 'get',
    params
  })
}
//空调列表
export function airConditioningList(params) {
  return request({
    url: '/billing/airConditioningList',
    method: 'get',
    params
  })
}
// 模拟缴费
export function simulatePayment(params) {
  return request({
    url: '/wx/payment',
    method: 'get',
    params
  })
}
// 模拟充值
export function simulateRecharge(params) {
  return request({
    url: '/wx/recharge',
    method: 'get',
    params
  })
}
//缴费流水
export function paymentDetails(params) {
  return request({
    url: '/wx/paymentRecord',
    method: 'get',
    params
  })
}
//核销明细
export function selectBillingHxm(params) {
  return request({
    url: '/billing/tenantsjmx',
    method: 'get',
    params
  })
}
//核销明细（租户）
export function selectBillingHxmJe(params) {
  return request({
    url: '/billing/tenantsjmxje',
    method: 'get',
    params
  })
}
// 租户状态
export function selectBillingTenantStatus(params) {
  return request({
    url: '/billing/tenantsqfje',
    method: 'get',
    params
  })
}
//待缴费租户列表
export function getTenantList(params) {
  return request({
    url: '/wx/postpaidShow',
    method: 'get',
    params
  })
}
// 后付费租户，待缴费账单
export function getPostpaidBillList(params) {
  return request({
    url: '/wx/postpaid1',
    method: 'get',
    params
  })
}
// 欠费租户
export function getPowerOffTenantList(params) {
  return request({url: '/wx/powerOffShow', method: 'get', params});
}
// 停电通知
export function getPowerOffNotice(params) {
  return request({url: '/wx/powerOffNotice', method: 'get', params});
}
